﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;
using Cofe.Core.Implements;

namespace Cofe.Web
{
    /// <summary>
    /// Used by IEntryObjectSerializer to lookup and update an entry.
    /// </summary>
    public interface IEntrySerializerHelper
    {
        /// <summary>
        /// Lookup or create an entry using the paramaters in the dictionary (e.g. parseName,  id, name, type)
        /// </summary>
        /// <param name="parameters"></param>
        /// <returns></returns>
        CofeSystemInfo FindFunc(ParameterDic parameters);

        /// <summary>
        /// Update of an entry using the parameters stored.
        /// </summary>
        /// <param name="entry"></param>
        /// <param name="parameters"></param>
        void UpdateFunc(CofeSystemInfo entry, ParameterDic parameters);
    }
}
